home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Open Transport / OT Developer Information / General information / OTTCP_Config_Tips < prev   
Encoding:
Text File  |  1996-11-19  |  14.6 KB  |  180 lines  |  [TEXT/MSWD]

  1. .c1.Open Transport/TCP
  2. Configuration Notes
  3.  
  4. This document is extracted from the Open Transport TCPIP developers note. It contains supplemental information on how to configure Open Transport/TCP, and on how the new DNR works. This material will be incorporated into the Open Transport User's Guide when it becomes available with Open Transport v1.1.
  5.  
  6. General Information
  7.  
  8. Open Transport /TCP is supported over Ethernet, 802.3, TokenRing, and AppleTalk (as MacIP). It is also supported over serial lines when using backward compatible MDEV support. 
  9.  
  10. Open Transport/TCP is configured using the TCP/IP application which is in the System's Control Panels folder. Configuration may be done manually, or via a BOOTP, DHCP, RARP, or MacIP server. The steps to follow using each of these methods are detailed below.
  11.  
  12. By default, the TCP/IP application comes up in Basic mode. Advanced or Administration mode may be entered via the Edit menu. These modes allow expert users additional choices as well as the ability to augment information returned from a configuration server or to fill in gaps in the returned information.
  13.  
  14. The TCP/IP application may be used at any time to reconfigure the system. However TCP will not notice the new configuration until it has unloaded from the system. By default, this takes about 2 minutes after the last application using TCP or UDP has gone away. 
  15.  
  16. .c2.
  17. Manual Configuration
  18.  
  19. To manually setup Open Transport/TCP, follow these steps:
  20.  
  21. (1) Select the interface to use, or pick "AppleTalk (MacIP)" to run over AppleTalk on the interface selected in the AppleTalk control panel. 
  22.  
  23. (2) If an Ethernet interface is selected, a check box will appear offering the use of 802.3. By default, Open Transport/TCP uses Ethernet rather than 802.3.
  24.  
  25. (3) Select "Manually" as the configuration method. 
  26.  
  27. (4) Fill in the IP address in dot notation (e.g. 128.1.1.1).
  28.  
  29. (5) Fill in the default domain extension to be used on name searches. For example, if a domain name of "apple.com" is configured, a search for "sam" would initially search for "sam.apple.com." It is not always necessary to fill in this field when configuring from a BOOTP or DHCP server since it may be returned along with the IP address. 
  30.  
  31. In Advanced User mode only, you may enter an Admin Domain. This is used to allow implicit searches. For example, if my domain is "joesgroup.mktg.apple.com", and my admin domain is set to "apple.com", a search for the name "sam" would first look for "sam.joesgroup.mktg.apple.com", then for "sam.mktg.apple.com", then for "sam.apple.com." Implicit searching will not be done unless an Admin Domain is explicitly setup and the default domain is a subdomain of the Admin Domain (per RFC 1535). 
  32.  
  33. (6) Fill in the subnet mask in dot notation. For example, on a class B net which uses 6 bits of the host field for subnetting, the subnet mask should be entered as "255.255.252.0". 
  34.  
  35. (7) Fill in the IP address(es) of one or more IP routers.
  36.  
  37. (8) Fill in the IP address(es) of one or more Domain Name Servers.
  38.  
  39. (9) In Advanced User mode only, additional search domains may be entered. See the preceding description of the Domain Name Resolver operation for details.
  40.  
  41. (10) If a Hosts file is required, select it using the Hosts file button. 
  42.  
  43. The TCP/IP application may be used at any time to reconfigure the system. However, TCP will not notice the new configuration until it has unloaded from the system. By default, this takes about 2 minutes after the last application using TCP or UDP has gone away. 
  44.  
  45.  
  46. .c2.DHCP Configuration
  47.  
  48. To use a DHCP server to setup Open Transport/TCP, follow these steps:
  49.  
  50. (1) Select the interface to use, or pick "AppleTalk (MacIP)" to run over AppleTalk on the interface selected in the AppleTalk control panel. 
  51.  
  52. (2) If an Ethernet interface is selected, a check box will appear offering the use of 802.3. By default, Open Transport/TCP uses Ethernet rather than 802.3.
  53.  
  54. (3) Select "Using DHCP" as the configuration method. 
  55.  
  56. (4) In Advanced User mode only, you may enter an Admin Domain. This is used to allow implicit searches. For example, if my domain is "joesgroup.mktg.apple.com", and my admin domain is set to "apple.com", a search for the name "sam" would first look for "sam.joesgroup.mktg.apple.com", then for "sam.mktg.apple.com", then for "sam.apple.com." Implicit searching will not be done unless an Admin Domain is explicitly setup and the default domain is a subdomain of the Admin Domain (per RFC 1535). 
  57.  
  58. (5) In Advanced User mode, a subnet mask may be entered but is not required. If a value is entered, it will be used if no subnet mask is returned from the DHCP server. Otherwise, any value entered is ignored.
  59.  
  60. (6) In Advanced User mode, the manually entered IP addresses of routers are attached to the end of the possibly empty) list of IP routers returned by the DHCP server.
  61.  
  62. (7) In Advanced User mode, the manually entered IP addresses of Domain Name Servers are attached to the end of the (possibly empty) list of Name Servers returned by the DHCP server.
  63.  
  64. (8) In Advanced User mode only, additional search domains may be entered. See the preceding description of the Domain Name Resolver operation for details.
  65.  
  66. (9) If a Hosts file is required, select it using the Hosts file button. For details about the Hosts file, see the description which follows.
  67.  
  68. .c2.DHCP Address Leases
  69.  
  70. DHCP provides a network administrator with the ability to configure a host's IP address either for an unlimited or for a limited period of time. The limited lease period is under the network administrator's control and is non-negotiable. Leases may, however, be renewed at the option of the configuring server.
  71.  
  72. Open Transport/TCP fully supports DHCP address leases. Should an interface's IP address lease expire, the interface will be closed down. However, Open Transport/TCP will automatically attempt to renew any address lease that reaches it's Renewal Interval, which defaults to half of the lease's lifetime, but may be configured to a different interval by the configuring server. Renewal will be attempted regardless of how many times the lease has already been renewed.
  73.  
  74. .c2.
  75. BOOTP Configuration
  76.  
  77. To use a BOOTP server to setup Open Transport/TCP, follow these steps:
  78.  
  79. (1) Select the interface to use, or pick "AppleTalk (MacIP)" to run over AppleTalk on the interface selected in the AppleTalk control panel. 
  80.  
  81. (2) If an Ethernet interface is selected, a check box will appear offering the use of 802.3. By default, Open Transport/TCP uses Ethernet rather than 802.3.
  82.  
  83. (3) Select "Using BOOTP " as the configuration method. 
  84.  
  85. (4) In Advanced User mode only, you may enter an Admin Domain. This is used to allow implicit searches. For example, if my domain is "joesgroup.mktg.apple.com", and my admin domain is set to "apple.com", a search for the name "sam" would first look for "sam.joesgroup.mktg.apple.com", then for "sam.mktg.apple.com", then for "sam.apple.com." Implicit searching will not be done unless an Admin Domain is explicitly setup and the default domain is a subdomain of the Admin Domain (per RFC 1535). 
  86.  
  87. (5) In Advanced User mode, a subnet mask may be entered but is not required. If a value is entered, it will be used if no subnet mask is returned from the BOOTP server. Otherwise, any value entered is ignored.
  88.  
  89. (6) In Advanced User mode, the manually entered IP addresses of routers are attached to the end of the (possibly empty) list of IP routers returned by the DHCP server.
  90.  
  91. (7) In Advanced User mode, the manually entered IP addresses of Domain Name Servers are attached to the end of the (possibly empty) list of Name Servers returned by the DHCP server.
  92.  
  93. (8) In Advanced User mode only, additional search domains may be entered. See the preceding description of the Domain Name Resolver operation for details.
  94.  
  95. (9) If a Hosts file is required, select it using the Hosts file button. For details about the Hosts file, see the description which follows.
  96.  
  97. The TCP/IP application may be used at any time to reconfigure the system. However, TCP will not notice the new configuration until it has unloaded from the system. By default, this takes about 2 minutes after the last application using TCP or UDP has gone away. 
  98.  
  99. .c2.
  100. RARP Configuration
  101.  
  102. To use a RARP server to setup Open Transport/TCP, follow these steps:
  103.  
  104. (1) Select the interface to use, or pick "AppleTalk (MacIP)" to run over AppleTalk on the interface selected in the AppleTalk control panel. 
  105.  
  106. (2) If an Ethernet interface is selected, a check box will appear offering the use of 802.3. By default, Open Transport/TCP uses Ethernet rather than 802.3.
  107.  
  108. (3) Select "Using RARP " as the configuration method. 
  109.  
  110. (4) Fill in the default domain extension to be used on name searches. For example. if a domain name of "apple.com" is configured, a search for "sam" would initially search for "sam.apple.com." It is not always necessary to fill in this field when configuring from a BOOTP or DHCP server since it may be returned along with the IP address. 
  111.  
  112. In Advanced User mode only, you may enter an Admin Domain. This is used to allow implicit searches. For example, if my domain is "joesgroup.mktg.apple.com", and my admin domain is set to "apple.com", a search for the name "sam" would first look for "sam.joesgroup.mktg.apple.com", then for "sam.mktg.apple.com", then for "sam.apple.com." Implicit searching will not be done unless an Admin Domain is explicitly setup and the default domain is a subdomain of the Admin Domain (per RFC 1535). 
  113.  
  114. (5) Fill in the subnet mask in dot notation. For example, using a class B net which uses 6 bits of the host field used for subnetting, the subnet mask should be entered as "255.255.252.0". 
  115.  
  116. (6) Fill in the IP address(es) of one or more IP routers.
  117.  
  118. (7) Fill in the IP address(es) of one or more Domain Name Servers.
  119.  
  120. (8) In Advanced User mode only, additional search domains may be entered. See the preceding description of the Domain Name Resolver operation for details.
  121.  
  122. (9) If a Hosts file is required, select it using the Hosts file button. 
  123.  
  124. The TCP/IP application may be used at any time to reconfigure the system. However, TCP will not notice the new configuration until it has unloaded from the system. By default, this takes about 2 minutes after the last application using TCP or UDP has gone away. 
  125.  
  126. .c2.
  127. MacIP Server Configuration
  128.  
  129. To use a MacIP Server to setup Open Transport/TCP, follow these steps:
  130.  
  131. (1) Select "AppleTalk (MacIP)" as the interface to use. TCP will now run over AppleTalk on the interface selected in the AppleTalk control panel. 
  132.  
  133. (2) Select "Using MacIP Server" as the configuration method. 
  134.  
  135. (3) Fill in the default domain extension to be used on name searches. For example. if a domain name of "apple.com" is configured, a search for "sam" would initially search for "sam.apple.com." It is not always necessary to fill in this field when configuring from a MacIP server since it may be returned along with the IP address. 
  136.  
  137. In Advanced User mode only, you may enter an Admin Domain. This is used to allow implicit searches. For example, if my domain is "joesgroup.mktg.apple.com", and my admin domain is set to "apple.com", a search for the name "sam" would first look for "sam.joesgroup.mktg.apple.com", then for "sam.mktg.apple.com", then for "sam.apple.com." Implicit searching will not be done unless an Admin Domain is explicitly setup and the default domain is a subdomain of the Admin Domain (per RFC 1535). 
  138.  
  139. (4) If a Hosts file is required, select it using the Hosts file button. 
  140.  
  141. .c2.
  142.  
  143. Hosts File
  144.  
  145. Open Transport/TCP supports a Hosts file that may be used to supplement and/or customize the Domain Name Resolver's initial cache of information. The Hosts file is found in the System's Preferences folder. This file is parsed when Open Transport/TCP is initialized. As in MacTCP, the supported Hosts file features follow a subset of the Domain Name System Master File Format (see RFC 1035 page 33).
  146.  
  147. Supported features include blank lines, comments (indicated by a semicolon), and data entry. Comments may begin at any location in a line; they may follow data entry on the same line. A comment extends from the semicolon to the end of the line. Data entry must follow the format:
  148.  
  149.     <domain-name> <rr> [<comment>]
  150.  
  151. where <domain-name> is an absolute or Fully Qualified domain name (which, however, need not be terminated by a dot, but must contain at least one dot internally) and where
  152.  
  153.     <rr> = [<ttl>] [<class>] <type> <rdata> OR [<class>] [<ttl>] <type> <rdata> 
  154.  
  155. The only class currently supported is IN (Internet Domain); ttl (time to live; indicates the record's configured lifetime) is in seconds; and type can be A (host address), CNAME (canonical name of an alias), or NS (name server). If ttl is not present the entry is assumed to have an infinite lifetime; this may also be indicated by specifying a ttl of minus-one (-1).
  156.  
  157. $INCLUDE and $ORIGIN are not supported.
  158.  
  159. Examples of valid data entry lines including comments:
  160.  
  161.  apple.com A 130.43.2.2 ; address of host apple.com
  162.  foobar CNAME barfoo.apple.com ; canonical name for the host whose local alias is "foobar"
  163.  mit.edu. 86400 NS achilles.mit.edu ; name server for mit.edu domain, entry has a one-week lifetime 
  164.  
  165. Open Transport/TCP's Hosts file support is somewhat more stringent than that of MacTCP. MacTCP permitted violation of the Fully Qualified requirement for <domain-name>, and this feature was often used to avoid the necessity for entering CNAME records by associating an address directly with a non-fully qualified name. For instance, this format:
  166.  
  167.  charlie A 128.1.1.1
  168.  
  169. which was acceptable to the MacTCP DNR, is no longer permitted because of the use of domain search lists in Open Transport/TCP (charlie could potentially exist in any or all of the configured domains). If such a line exists in your hosts file, kOTBadNameError will be returned when the Hosts file is read. To accomplish the same effect, use this format instead:
  170.  
  171.  charlie CNAME myhost.mydomain.edu
  172.  myhost.mydomain.edu A 128.1.1.1
  173.  
  174. This associates the local alias "charlie" with the fully qualified domain name "myhost.mydomain.edu" and resolves it to the address 128.1.1.1. Use of local aliases is limited to CNAME entries; NS and A entries must use fully qualified domain names.
  175.  
  176. In general, use of the Hosts file is discouraged, as it often simply wastes memory by permanently configuring data that may only rarely be accessed. It is also highly susceptible to misuse by users who try to configure far too much information internally in order to avoid accessing DNS servers. Besides tying up memory, this practice is exactly the reason that the Domain Name System was developed in the first place - to eliminate the performance degradation caused by use of enormous hosts files.
  177.  
  178. Should a Hosts file be used, every effort should be made to keep it as small as possible and to only include entries that will be accessed frequently.
  179.  
  180.